#!/bin/sh

set -e

bnscli register-domain \
		-domain "mydomain" \
		-admin "92066456B2BE7F1934624087D98C203A87F7752C" \
		-superuser "true" \
		-account-renew 12345h \
		-broker "bech32:tiov16hzpmhecd65u993lasmexrdlkvhcxtlnf7f4ws"\
	| bnscli view

echo
echo

bnscli register-domain \
		-domain "mydomain" \
		-admin "92066456B2BE7F1934624087D98C203A87F7752C" \
		-superuser "true" \
		-account-renew 12345h \
		-broker "D5C41DDF386EA9C2963FEC37930DBFB32F832FF3" \
	| bnscli view

echo
echo

bnscli register-domain \
        -domain "another-domain" \
        -admin "92066456B2BE7F1934624087D98C203A87F7752C" \
        -superuser false \
        -account-renew "1h4m" \
    | bnscli with-account-msg-fee -path 'account/first_msg' -amount "5 IOV" \
    | bnscli with-account-msg-fee -path 'account/second_msg' -amount "9 IOV" \
    | bnscli view
